Skip to main content

Terminate an app (app.close)

Declaration​

app.close(bid_or_pid)

Parameters​

  • bid_or_pid
    String (bundle id) or Integer (pid).

Description​

  • Force terminate an app. If the app is not running, nothing happens; the operation does not fail.
  • This is a force kill and the target app will not receive any notification.

Example​